Close Browser Instances
AutomatR.Web.CloseBrowserInstances
The "Close Browser Instances" activity in AutomatR's Web Activities category is used to gracefully close browser instances based on the specified browser type. This activity is particularly useful for clean-up operations at the end of a workflow, ensuring that browser instances are closed efficiently.
Properties
Name | Description |
---|---|
Input | |
Browser Type | Select the type of browser instance to close. Options include Chrome, Firefox, Edge, and Internet Explorer. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Activate Browser" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs a boolean value indicating whether the browser instance(s) were closed successfully. "True" indicates success, and "False" indicates failure. |
How to use:
- Drag and drop the "Close Browser Instances" activity onto the workflow.
- Configure the properties by selecting the desired browser type.
- Execute the workflow to gracefully close the specified browser instance(s).
Example: Consider an example where the "Close Browser Instances" activity is used to close all open Chrome browser instances:
Close Browser Instances:
Browser Type: Chrome
Result: isClosedSuccessfully
In this example, the activity closes all open Chrome browser instances, and the result of the operation (success or failure) is stored in the boolean variable "isClosedSuccessfully" for further handling in the workflow.